<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style></style>
</head>
<body>
    
</body>
<script>
    // 1.判断一个整数属于哪个范围;大于0;小于0;等于0

    var n=5;
    if (n < 0)
    {console.log("小于0");}
    else if(n = 0)
    {console.log("等于0");}
    // else if(n > 0)
    // {console.log("大于0");}
    
    else{console.log("大于0")}
</script>
</html>